//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package com.tl.satoken.domain.entity;

import java.util.HashSet;
import java.util.Set;
import org.springframework.data.annotation.Id;

public class User {
    @Id
    private Long id;
    private String name;
    private String email;
    private String password;
    private String wechatId;
    private String wechatUnionId;
    private String accountType;
    private String phone;
    private String address;
    private String birthday;
    private String signature;
    private String currentPassword;
    private Set<String> roles = new HashSet();
    private String profileImageUrl;
    private String selfieUrl;
    private String selfieDirectory;

    public User() {
    }

    public Long getId() {
        return this.id;
    }

    public String getName() {
        return this.name;
    }

    public String getEmail() {
        return this.email;
    }

    public String getPassword() {
        return this.password;
    }

    public String getWechatId() {
        return this.wechatId;
    }

    public String getWechatUnionId() {
        return this.wechatUnionId;
    }

    public String getAccountType() {
        return this.accountType;
    }

    public String getPhone() {
        return this.phone;
    }

    public String getAddress() {
        return this.address;
    }

    public String getBirthday() {
        return this.birthday;
    }

    public String getSignature() {
        return this.signature;
    }

    public String getCurrentPassword() {
        return this.currentPassword;
    }

    public Set<String> getRoles() {
        return this.roles;
    }

    public String getProfileImageUrl() {
        return this.profileImageUrl;
    }

    public String getSelfieUrl() {
        return this.selfieUrl;
    }

    public String getSelfieDirectory() {
        return this.selfieDirectory;
    }

    public void setId(final Long id) {
        this.id = id;
    }

    public void setName(final String name) {
        this.name = name;
    }

    public void setEmail(final String email) {
        this.email = email;
    }

    public void setPassword(final String password) {
        this.password = password;
    }

    public void setWechatId(final String wechatId) {
        this.wechatId = wechatId;
    }

    public void setWechatUnionId(final String wechatUnionId) {
        this.wechatUnionId = wechatUnionId;
    }

    public void setAccountType(final String accountType) {
        this.accountType = accountType;
    }

    public void setPhone(final String phone) {
        this.phone = phone;
    }

    public void setAddress(final String address) {
        this.address = address;
    }

    public void setBirthday(final String birthday) {
        this.birthday = birthday;
    }

    public void setSignature(final String signature) {
        this.signature = signature;
    }

    public void setCurrentPassword(final String currentPassword) {
        this.currentPassword = currentPassword;
    }

    public void setRoles(final Set<String> roles) {
        this.roles = roles;
    }

    public void setProfileImageUrl(final String profileImageUrl) {
        this.profileImageUrl = profileImageUrl;
    }

    public void setSelfieUrl(final String selfieUrl) {
        this.selfieUrl = selfieUrl;
    }

    public void setSelfieDirectory(final String selfieDirectory) {
        this.selfieDirectory = selfieDirectory;
    }

    public boolean equals(final Object o) {
        if (o == this) {
            return true;
        } else if (!(o instanceof User)) {
            return false;
        } else {
            User other = (User)o;
            if (!other.canEqual(this)) {
                return false;
            } else {
                Object this$id = this.getId();
                Object other$id = other.getId();
                if (this$id == null) {
                    if (other$id != null) {
                        return false;
                    }
                } else if (!this$id.equals(other$id)) {
                    return false;
                }

                Object this$name = this.getName();
                Object other$name = other.getName();
                if (this$name == null) {
                    if (other$name != null) {
                        return false;
                    }
                } else if (!this$name.equals(other$name)) {
                    return false;
                }

                Object this$email = this.getEmail();
                Object other$email = other.getEmail();
                if (this$email == null) {
                    if (other$email != null) {
                        return false;
                    }
                } else if (!this$email.equals(other$email)) {
                    return false;
                }

                Object this$password = this.getPassword();
                Object other$password = other.getPassword();
                if (this$password == null) {
                    if (other$password != null) {
                        return false;
                    }
                } else if (!this$password.equals(other$password)) {
                    return false;
                }

                Object this$wechatId = this.getWechatId();
                Object other$wechatId = other.getWechatId();
                if (this$wechatId == null) {
                    if (other$wechatId != null) {
                        return false;
                    }
                } else if (!this$wechatId.equals(other$wechatId)) {
                    return false;
                }

                Object this$wechatUnionId = this.getWechatUnionId();
                Object other$wechatUnionId = other.getWechatUnionId();
                if (this$wechatUnionId == null) {
                    if (other$wechatUnionId != null) {
                        return false;
                    }
                } else if (!this$wechatUnionId.equals(other$wechatUnionId)) {
                    return false;
                }

                Object this$accountType = this.getAccountType();
                Object other$accountType = other.getAccountType();
                if (this$accountType == null) {
                    if (other$accountType != null) {
                        return false;
                    }
                } else if (!this$accountType.equals(other$accountType)) {
                    return false;
                }

                Object this$phone = this.getPhone();
                Object other$phone = other.getPhone();
                if (this$phone == null) {
                    if (other$phone != null) {
                        return false;
                    }
                } else if (!this$phone.equals(other$phone)) {
                    return false;
                }

                Object this$address = this.getAddress();
                Object other$address = other.getAddress();
                if (this$address == null) {
                    if (other$address != null) {
                        return false;
                    }
                } else if (!this$address.equals(other$address)) {
                    return false;
                }

                Object this$birthday = this.getBirthday();
                Object other$birthday = other.getBirthday();
                if (this$birthday == null) {
                    if (other$birthday != null) {
                        return false;
                    }
                } else if (!this$birthday.equals(other$birthday)) {
                    return false;
                }

                Object this$signature = this.getSignature();
                Object other$signature = other.getSignature();
                if (this$signature == null) {
                    if (other$signature != null) {
                        return false;
                    }
                } else if (!this$signature.equals(other$signature)) {
                    return false;
                }

                Object this$currentPassword = this.getCurrentPassword();
                Object other$currentPassword = other.getCurrentPassword();
                if (this$currentPassword == null) {
                    if (other$currentPassword != null) {
                        return false;
                    }
                } else if (!this$currentPassword.equals(other$currentPassword)) {
                    return false;
                }

                Object this$roles = this.getRoles();
                Object other$roles = other.getRoles();
                if (this$roles == null) {
                    if (other$roles != null) {
                        return false;
                    }
                } else if (!this$roles.equals(other$roles)) {
                    return false;
                }

                Object this$profileImageUrl = this.getProfileImageUrl();
                Object other$profileImageUrl = other.getProfileImageUrl();
                if (this$profileImageUrl == null) {
                    if (other$profileImageUrl != null) {
                        return false;
                    }
                } else if (!this$profileImageUrl.equals(other$profileImageUrl)) {
                    return false;
                }

                Object this$selfieUrl = this.getSelfieUrl();
                Object other$selfieUrl = other.getSelfieUrl();
                if (this$selfieUrl == null) {
                    if (other$selfieUrl != null) {
                        return false;
                    }
                } else if (!this$selfieUrl.equals(other$selfieUrl)) {
                    return false;
                }

                Object this$selfieDirectory = this.getSelfieDirectory();
                Object other$selfieDirectory = other.getSelfieDirectory();
                if (this$selfieDirectory == null) {
                    if (other$selfieDirectory != null) {
                        return false;
                    }
                } else if (!this$selfieDirectory.equals(other$selfieDirectory)) {
                    return false;
                }

                return true;
            }
        }
    }

    protected boolean canEqual(final Object other) {
        return other instanceof User;
    }

    public int hashCode() {
        int PRIME = 59;
        int result = 1;
        Object $id = this.getId();
        result = result * 59 + ($id == null ? 43 : $id.hashCode());
        Object $name = this.getName();
        result = result * 59 + ($name == null ? 43 : $name.hashCode());
        Object $email = this.getEmail();
        result = result * 59 + ($email == null ? 43 : $email.hashCode());
        Object $password = this.getPassword();
        result = result * 59 + ($password == null ? 43 : $password.hashCode());
        Object $wechatId = this.getWechatId();
        result = result * 59 + ($wechatId == null ? 43 : $wechatId.hashCode());
        Object $wechatUnionId = this.getWechatUnionId();
        result = result * 59 + ($wechatUnionId == null ? 43 : $wechatUnionId.hashCode());
        Object $accountType = this.getAccountType();
        result = result * 59 + ($accountType == null ? 43 : $accountType.hashCode());
        Object $phone = this.getPhone();
        result = result * 59 + ($phone == null ? 43 : $phone.hashCode());
        Object $address = this.getAddress();
        result = result * 59 + ($address == null ? 43 : $address.hashCode());
        Object $birthday = this.getBirthday();
        result = result * 59 + ($birthday == null ? 43 : $birthday.hashCode());
        Object $signature = this.getSignature();
        result = result * 59 + ($signature == null ? 43 : $signature.hashCode());
        Object $currentPassword = this.getCurrentPassword();
        result = result * 59 + ($currentPassword == null ? 43 : $currentPassword.hashCode());
        Object $roles = this.getRoles();
        result = result * 59 + ($roles == null ? 43 : $roles.hashCode());
        Object $profileImageUrl = this.getProfileImageUrl();
        result = result * 59 + ($profileImageUrl == null ? 43 : $profileImageUrl.hashCode());
        Object $selfieUrl = this.getSelfieUrl();
        result = result * 59 + ($selfieUrl == null ? 43 : $selfieUrl.hashCode());
        Object $selfieDirectory = this.getSelfieDirectory();
        result = result * 59 + ($selfieDirectory == null ? 43 : $selfieDirectory.hashCode());
        return result;
    }

    public String toString() {
        Long var10000 = this.getId();
        return "User(id=" + var10000 + ", name=" + this.getName() + ", email=" + this.getEmail() + ", password=" + this.getPassword() + ", wechatId=" + this.getWechatId() + ", wechatUnionId=" + this.getWechatUnionId() + ", accountType=" + this.getAccountType() + ", phone=" + this.getPhone() + ", address=" + this.getAddress() + ", birthday=" + this.getBirthday() + ", signature=" + this.getSignature() + ", currentPassword=" + this.getCurrentPassword() + ", roles=" + String.valueOf(this.getRoles()) + ", profileImageUrl=" + this.getProfileImageUrl() + ", selfieUrl=" + this.getSelfieUrl() + ", selfieDirectory=" + this.getSelfieDirectory() + ")";
    }
}
